//
//  BoxSP.h
//  verletRopeTestProject
//
//  Created by Goffredo Marocchi on 12/6/10.
//  Copyright 2010 IGGS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Box2D.h"
#import "CCSprite.h"
#import "VRope.h"

typedef enum tagBoxState {
	kBoxStateGrabbed,
	kBoxStateUngrabbed
} BoxState;

@interface BoxSP : CCSprite <CCTargetedTouchDelegate> {
	BoxState state;
	CGPoint oldPos, newPos;
}

@property(nonatomic, readonly) CGRect rect;
@property(nonatomic, readonly) CGRect rectInPixels;
@property (nonatomic, assign) b2Body* box2dBody;
@property (nonatomic, assign) CGPoint oldPos;

+(id) boxWithBatchNode:(CCSpriteBatchNode*)batchNode rect:(CGRect)rectangle;
+ (id)boxWithTexture:(CCTexture2D *)aTexture;

@end
